package com.tec.security.utils.date;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateString {
    public static String currentDate(){
        SimpleDateFormat d= new SimpleDateFormat("yyyy-MM-dd");
        return d.format(new Date(System.currentTimeMillis()));
    }
    public static String currentTime(){
        SimpleDateFormat t= new SimpleDateFormat("HH:mm:ss");
        return t.format(new Date(System.currentTimeMillis()));
    }
}
